package com.ouheng.shop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.ouheng.shop.dao.RushPurchaseProductDao;
import com.ouheng.shop.domain.RushPurchaseProductDO;
import com.ouheng.shop.service.RushPurchaseProductService;



@Service
public class RushPurchaseProductServiceImpl implements RushPurchaseProductService {
	@Autowired
	private RushPurchaseProductDao rushPurchaseProductDao;
	
	@Override
	public RushPurchaseProductDO get(Long id){
		return rushPurchaseProductDao.get(id);
	}
	
	@Override
	public List<RushPurchaseProductDO> list(Map<String, Object> map){
		return rushPurchaseProductDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return rushPurchaseProductDao.count(map);
	}
	
	@Override
	public int save(RushPurchaseProductDO rushPurchaseProduct){
		return rushPurchaseProductDao.save(rushPurchaseProduct);
	}
	
	@Override
	public int update(RushPurchaseProductDO rushPurchaseProduct){
		return rushPurchaseProductDao.update(rushPurchaseProduct);
	}
	
	@Override
	public int remove(Long id){
		return rushPurchaseProductDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return rushPurchaseProductDao.batchRemove(ids);
	}

	@Override
	public int removeByPid(Long pid) {
		// TODO Auto-generated method stub
		return rushPurchaseProductDao.removeByPid(pid);
	}

	@Override
	public List<Long> listProductidByPid(Long pid) {
		// TODO Auto-generated method stub
		return rushPurchaseProductDao.listProductidByPid(pid);
	}
	
}
